package edu.sysu.cshare.service;

import java.io.Serializable;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import edu.sysu.cshare.DAO.UserDAO;
import edu.sysu.cshare.model.User;

@Service
public class UserService {
	
	private UserDAO userDAO;

	@Resource
	public void setUserDAO(UserDAO userDAO) {
		this.userDAO = userDAO;
	}

	public User get(String id) {
		return userDAO.get(id);
	}

	public void update(User user) {
		userDAO.update(user);
	}

}
